package com.example.idachuappone.index.entity;

import java.io.Serializable;
import org.json.JSONObject;

public class CommentImg implements Serializable {
    private String url;
    private String url_small;

    public CommentImg parseJson(JSONObject json) {
        if (json == null) {
            return null;
        }
        if (json.has("url")) {
            this.url = json.optString("url");
        }
        if (!json.has("url_small")) {
            return this;
        }
        this.url_small = json.optString("url_small");
        return this;
    }

    public String getUrl() {
        return this.url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl_small() {
        return this.url_small;
    }

    public void setUrl_small(String url_small) {
        this.url_small = url_small;
    }
}
